import type { RouteConfigsTable } from "/#/index";
import { $t } from "/@/plugins/i18n";

const customerRouter: RouteConfigsTable = {
  path: "/customer",
  redirect: "/customer/index",
  meta: {
    icon: "bell",
    title: $t("menus.hscustomer"),
    rank: 7
  },
  children: [
    {
      path: "/customer/index",
      name: "CustomerIndex",
      component: () => import("/@/views/customer/index.vue"),
      meta: {
        title: $t("menus.hscustomer"),
        roles: ["admin", "super", "warehouse"]
      }
    }
  ]
};

export default customerRouter;
